#ifndef TERMIOS_H
#define TERMIOS_H

#define O_NOCTTY	0x00

#define CREAD		0x00
#define CS8			0x00
#define CLOCAL		0x00

#define VMIN		0x00
#define VTIME		0x00

#define B115200		0x00

#define TCSANOW		0x00

#define TCIFLUSH	0x00

struct termios {
	int c_iflag;
	int c_oflag;
	int c_lflag;
	int c_cflag;

	int c_cc[1];
};

int tcgetattr(int fildes, termios *termios_p);
int tcsetattr(int fildes, int optional_actions, termios *termios_p);

int tcflush(int fildes, int queue_selector);

typedef unsigned int speed_t;

int cfsetispeed(termios *termios_p, speed_t speed);
int cfsetospeed(termios *termios_p, speed_t speed);

#endif //TERMIOS_H
